package com.matchmaking.system.service.impl;

import com.matchmaking.system.domain.SysDictData;
import com.matchmaking.system.mapper.SysDictDataMapper;
import com.matchmaking.system.service.SysDictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysDictDataServicelmpl implements SysDictDataService {

    @Autowired
    SysDictDataMapper dictDataMapper;

    /**
     * 字典表类型查询
     *
     * @param
     * @param dictType
     * @return
     */
    @Override
    public List<SysDictData> selectAll(String dictLabel, String status, String dictType) {
        return dictDataMapper.selectAll(dictLabel,status,dictType);
    }

    /**
     * 字典表类型插入
     * @param dictData
     */
    @Override
    public void insertObject(SysDictData dictData) {
        dictDataMapper.insertObject(dictData);
    }


    /**
     * 逻辑删除
     * @param dictData
     */
    @Override
    public void delById(Long dictData) {
        dictDataMapper.delById(dictData);
    }

    /**
     * 修改
     * @param dictData
     */
    @Override
    public void updateObject(SysDictData dictData) {
        dictDataMapper.updateObject(dictData);
    }

    /**
     * 批量删除
     * @param dictCode
     */
    @Override
    public void delAll(String dictCode) {
        dictDataMapper.delAll(dictCode);
    }


//    /**
//     * 导出查询
//     * @return
//     */
//    @Override
//    public List<SysDictData> selectAllObj() {
//        return dictDataMapper.selectAllObj();
//    }


}
